package cn.edu.nuaa.aadl2.AdaGenerator;

import org.eclipse.core.resources.IProject;
import org.osate.aadl2.ComponentImplementation;
import org.osate.aadl2.SystemImplementation;
import org.osate.aadl2.instance.impl.SystemInstanceImpl;

import cn.edu.nuaa.aadl2.AdaGenerator.utils.Tools;
import cn.edu.nuaa.aadl2.AdaGenerator.workflow.GenerateAda;

public class AdaCodeGeneration{
	 

	
	static public int codeGeneration(SystemImplementation system,IProject project,String destination) {
	
		if (system != null && project != null)
		{
			Tools.projects = project;
			GenerateAda.generate(system);
			return 1;
		}
		return 0;
	}
	
}